package cn.big.bigd.biocode.dao;

import cn.big.bigd.biocode.model.Organization;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *@Author wangfan
 *@Date 2017/12/4 12:59
 */


@Repository
public interface OrganizationDAO extends JpaRepository<Organization, Long> {


    List<Organization> findByNameContains(String q);
    Organization findByNameAndDepartmentAndCountry(String name,String dep,String c);
    List<Organization> findByName(String name);
}
